<template>
<div class="login-group">
  <div class="login-info">
  <el-form :model="login" label-width="80px" label-postation="right">
    <h3>用户登录</h3>
    <el-form-item label="用户名" >
      <el-input v-model="login.name" placeholder="请输入用户名"></el-input>
    </el-form-item>
    <el-form-item label="密码">
      <el-input v-model="login.password" placeholder="请输入密码" show-password></el-input>
    </el-form-item>
    <el-form-item>
      <el-button type="primary">登录</el-button>
    </el-form-item>
  </el-form>
  </div>
</div>
</template>

<script>
export default {
  name: 'Login',
  data () {
    return {
      login: {
        username: '',
        password: ''
      }
    }
  },
  methods: {
    loginFun () {
      console.log(this.login)
    }
  }
}
</script>

<style scoped lang="scss">
.login-group{
  height: 100%;
  width: 100%;
  background: url("../assets/img/login-bj.png") no-repeat center/cover;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  .login-info{
    width: 30%;
    background-color: rgba(0,0,0,.3);
    padding: 15px;
    h3{
      text-align: center;
    }
  }
}
</style>
